$lightGreen: #e7ffb2;
$defaultBlue: #4096ff;
$normalGreen: #c5ff45;
$deepGreen: #13ce66;

#puppeteer-sunsilent-box {
  font-size: 12px;
  color: #000;
  .container {
    position: relative;
    .tools {
      width: 320px;
      padding: 5px;
      box-sizing: border-box;
      position: fixed;
      border-radius: 3px;
      background-color: #fff;
      box-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.25);
      z-index: 2147483647;
      &-header {
        border-radius: 3px;
        height: 36px;
        width: 100%;
        .move {
          transform: scale(0);
          transition: all 0.2s ease-in-out;
          background-color: #fff;
          width: 40px;
          cursor: move;
          height: 40px;
          position: absolute;
          top: -15px;
          left: -15px;
          border-radius: 10px;
          box-sizing: border-box;
          padding: 8px;
        }
        .header {
          padding-right: 11px;
          height: 100%;
          display: flex;
          justify-content: space-between;
          align-items: center;
          .title {
            display: flex;
            align-items: center;
            .robot {
              margin-left: 8px;
              margin-right: 8px;
              transform: scale(1);
              transition: all 0.2s ease-in-out;
            }
            .tabs {
              display: flex;
              align-items: center;
              .tab {
                cursor: pointer;
                color: #000;
                border-radius: 6px;
                height: 16px;
                padding: 5px 10px;
                &.active {
                  background-color: #1677ff;
                  color: #fff;
                }
              }
            }
          }

          .shutdown {
            box-sizing: border-box;
            background-color: #b0b0b0;
            transition: all 0.1s ease-in;
            cursor: pointer;
            border-radius: 5px;
            text-align: center;
            line-height: 24px;
            color: #fff;
            width: 40px;
            height: 24px;
            &:hover {
              background-color: #f00;
            }
          }
        }
      }
      &-selector {
        height: 40px;
        padding-left: 10px;
        padding-right: 10px;
        padding-bottom: 8px;
        padding-top: 4px;
        box-sizing: border-box;
      }
      &-setting {
        padding-left: 10px;
        padding-right: 10px;
        height: calc(100% - 36px - 40px - 80px);
        .tools-tabs {
          height: 28px;
          display: flex;
          align-items: center;
          justify-content: space-between;
          .tab {
            border-top-left-radius: 6px;
            border-top-right-radius: 6px;
            height: 28px;
            padding: 5px 10px;
            border: 1px solid #e0e0e0;
            background-color: #00000005;
            width: 144px;
            box-sizing: border-box;
            text-align: center;
            cursor: pointer;
            &.active {
              border-bottom-color: transparent;
              background-color: #fff;
              color: #1677ff;
            }
          }
        }
        .tools-main {
          overflow-y: auto;
          height: calc(100% - 28px);
          background-color: #fff;
          border: 1px solid #e0e0e0;
          border-top-color: transparent;
          padding: 10px;
          box-sizing: border-box;
          .element-tab {
            .selector {
              margin-top: 10px;
              margin-bottom: 10px;
            }
          }
          .form-item {
            display: flex;
            margin-bottom: 10px;
            .label {
              width: 100px;
              flex-shrink: 0;
            }
          }

          &::-webkit-scrollbar-track {
            -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.1);
            border-radius: 5px;
            background-color: #f5f5f5;
          }
          &::-webkit-scrollbar {
            width: 10px;
            height: 10px;
            background-color: #f5f5f5;
          }
          &::-webkit-scrollbar-thumb {
            border-radius: 8px;
            -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.1);
            background-color: #e2e2e2;
          }
        }
      }
      &-buttons {
        position: relative;
        height: 80px;
        padding-left: 10px;
        padding-right: 10px;
        padding-top: 5px;
        padding-bottom: 5px;
        box-sizing: border-box;
        display: flex;
        flex-direction: column;
        justify-content: space-around;
        .record-mouse-key-off {
          background-color: #fff;
          color: #1677ff;
          border: 1px solid #1677ff;
          line-height: 20px;
          font-size: 14px;
          text-align: center;
          padding: 4px;
          border-radius: 4px;
          cursor: pointer;
          display: flex;
          justify-content: center;
          align-items: center;
        }
        .record-mouse-key-on {
          background-color: #fff;
          color: #d81e06;
          border: 1px solid #d81e06;
          line-height: 20px;
          font-size: 14px;
          text-align: center;
          padding: 4px;
          border-radius: 4px;
          cursor: pointer;
          display: flex;
          justify-content: center;
          align-items: center;
        }
        .record-tip {
          position: absolute;
          right: 16px;
          top: 20px;
          font-size: 11px;
          color: #8d8d8d;
        }
        .next-step {
          background-color: #1677ff;
          color: #fff;
          line-height: 20px;
          font-size: 14px;
          text-align: center;
          padding: 5px;
          border-radius: 5px;
          cursor: pointer;
        }
      }
      &-list {
        overflow-y: auto;
        height: calc(100% - 36px);
        .list {
          margin-left: 8px;
          margin-right: 8px;
          border-top: 1px solid #b0b0b0;
          .list-item {
            padding: 5px 10px;
            border: 1px solid #b0b0b0;
            border-top: none;
            .item-header {
              display: flex;
              justify-content: space-between;
              font-size: 13px;
              .title {
                display: flex;
                .index {
                  width: 30px;
                  flex-shrink: 0;
                  text-align: right;
                }
              }
              .expand {
                cursor: pointer;
                font-size: 12px;
                color: #1677ff;
              }
            }
            .item-body {
              word-break: break-all;
            }
          }
        }
        &::-webkit-scrollbar-track {
          -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.1);
          border-radius: 5px;
          background-color: #f5f5f5;
        }
        &::-webkit-scrollbar {
          width: 10px;
          height: 10px;
          background-color: #f5f5f5;
        }
        &::-webkit-scrollbar-thumb {
          border-radius: 8px;
          -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.1);
          background-color: #e2e2e2;
        }
      }
      .built-in {
        padding: 0px 10px;
        height: calc(100% - 36px);
        overflow-y: auto;
        .built-in-item {
          text-align: center;
          cursor: pointer;
          user-select: none;
          padding: 6px 10px;
          border-radius: 5px;
          color: #fff;
          background-color: #1989fa;
          margin-bottom: 8px;
        }
        &::-webkit-scrollbar-track {
          -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.1);
          border-radius: 5px;
          background-color: #f5f5f5;
        }
        &::-webkit-scrollbar {
          width: 10px;
          height: 10px;
          background-color: #f5f5f5;
        }
        &::-webkit-scrollbar-thumb {
          border-radius: 8px;
          -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.1);
          background-color: #e2e2e2;
        }
      }
      .select-input {
        position: relative;
        .select-icon {
          cursor: pointer;
          position: absolute;
          left: 3px;
          top: 1px;
        }
        input {
          height: 28px;
          padding-left: 28px;
          padding-right: 48px;
          box-sizing: border-box;
          width: 100%;
        }
        .fast-selection {
          display: flex;
          position: absolute;
          right: 3px;
          top: 0px;
          width: 18px;
          height: 28px;
          .up {
            cursor: pointer;
            position: absolute;
            top: 0px;
          }
          .down {
            cursor: pointer;
            position: absolute;
            top: 12px;
          }
        }
        .select-similar {
          cursor: pointer;
          position: absolute;
          right: 28px;
          top: 5px;
        }
      }

      .message-tip {
        user-select: none;
        display: flex;
        justify-content: center;
        align-items: center;
        color: #fff;
        width: 150px;
        padding: 15px;
        background-color: #000000b3;
        border-radius: 5px;
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
      }
    }
    &:hover {
      .tools-header .move {
        transform: scale(1);
      }
      .tools-header .robot {
        transform: scale(0) !important;
      }
    }
  }
  .rect-box {
    position: fixed;
    z-index: 2147483646;
    user-select: none;
    background-image: linear-gradient(to top, #fad0c4 0%, #ffd1ff 100%) !important;
    opacity: 0.3;
    pointer-events: none;
    &.pointervisible {
      pointer-events: auto;
    }
    &.active {
      background-image: linear-gradient(to top, #0089ff 0%, #0089ff 100%) !important;
    }
  }
  .popup-box {
    position: fixed;
    z-index: 2147483645;
    user-select: none;
    background-color: #fff;
    border: 1px solid #e0e0e0;
    padding: 6px 6px;
    border-radius: 5px;
    box-shadow:
      0px 12px 32px 4px rgba(0, 0, 0, 0.04),
      0px 8px 20px rgba(0, 0, 0, 0.08);
    .pop-item {
      padding: 5px 10px;
      border-radius: 4px;
      &:hover {
        background-color: $defaultBlue;
        color: #fff;
        cursor: pointer;
      }
    }
  }
}
:host {
}
